#include "stack.h"

namespace Mystack
{
    void StackInit(struct Stack* s)
    {
        s->data = (int*)malloc(sizeof(int)*4);
        s->top = 0;
        s->capacity = 4;
    }

    void StackPush(struct Stack* s,int a)
    {
        if(s->capacity == s->top)
        {
            //扩容
        }
        s->data[s->top] = a;
        s->top++;
    }
}

void func(int a)
{
    cout << a << endl;
}
